/* 登录容器布局 */
.login-container {
    display: flex;
    /* 主轴对齐方式 - 子元素在两端对齐，中间自动分配空间
    Main axis alignment - Children aligned at both ends with space between */
    justify-content: space-between;
    max-width: 800px;
    margin: 120px auto;
    padding: 30px;
}

/* 左侧登录区域 */
.login-left {
    flex: 0 0 50%;
    padding-right: 40px;
}

/* 登录标签切换 */
.login-tabs {
    margin-bottom: 30px;
}

.tab {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    color: black;
}

.tab.active {
    color: #e4393c;
} 

/* 表单控件 */
.form-group {
    /* 表单间距控制 - 设置表单项之间的垂直间距为20像素
    Form spacing control - Sets vertical spacing between form items to 20px */
    margin-bottom: 20px;
    
 
}
/* 去除单选框边框获得焦点时也去除 */
input[type="password"] {
    border: none;
    outline: none;
    background-color: transparent;
}
input[type="text"] {
    border: none;
    outline: none;
    background-color: transparent;
}

input[type="tel"] {
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
}
input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
/* 登录按钮 - 宽度80%保持视觉平衡，品牌红色增强识别度
Login button - 80% width maintains visual balance, brand red enhances recognition */
.login-btn {
    width: 80%;
    padding: 12px;
    background: #e4393c;
    /* 交互状态设计 - 悬停加深红色(需JS配合实现)
    Interaction states - Hover darkening (requires JS implementation) */
}
.login-from{
    display: flex;
    justify-content: flex-end;
    margin-left: auto
}
/* 辅助链接 */
.forgot-password {
    display: block;
    align-self: flex-end;
    width: 120px;
    padding: 1px;
    margin: 1px ;
    color: #666;
    text-decoration: none;
    margin-left: auto; /* 将立即注册推到最右侧 */
    margin-right: 23px
}

/* 第三方登录 */
.third-party {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 5px;
}
/* QQ 微信 */
.third-icon {
    padding: 8px 15px 8px 20px;
    border-radius: 1px;
    cursor: pointer;
    border: none;
    outline: none;
    background-color: transparent;
    position: relative;
    background-repeat: no-repeat;
    background-position: 1px center;
    background-size: 20px;
}
/* QQ和微信图标 */
.third-icon.qq {
    background-image: url(../img/login.img/qq-icon.svg);
}

.third-icon.wechat {
    background-image: url(../img/login.img/wechat-icon.svg);
/* 立即注册 */
}
.register-link{
    display: block;
    align-self: flex-end;
    padding: 1px;
    color: #666;
    text-decoration: none;
    margin-left: auto; /* 将立即注册推到最右侧 */
    margin-right: 80px
}

/* 右侧二维码区域 */
.login-right {
    flex: 0 0 35%;
    background: #f5f5f5;
    padding: 30px;
    text-align: center;
}

.qrcode-box h3 {
    color: #333;
    margin-bottom: 20px;
}

.qrcode-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    background: #fff;
    border: 1px solid #ddd;
}


/* 验证码输入框布局 */
.captcha-wrapper {
    display: flex;
    gap: 10px;
    width: 100%;
}

.captcha-wrapper input {
    flex: 1;
    padding-right: 110px;
}


/*  验证码按钮样式 */

.get-captcha{
    margin-left: auto;
    margin-right: 83px;
    border: none; /* 移除边框 */
    outline: none;
    background-color: transparent;
    
}
.get-captcha:hover {
    background: #e0e0e0;

}

/* 验证码布局 - 弹性盒子实现输入框与按钮并排，10px间隙避免元素粘连
Captcha layout - Flexbox aligns input and button, 10px gap prevents overlap */
.captcha-wrapper {
    display: flex;
    gap: 10px;
}

.get-captcha:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;

}

.sms-login .form-group {
    margin-bottom: 20px;
}

.password-login {
    display: none;
}

.password-login.active,
.sms-login.active {
    display: block;
}

.sms-login {
    display: none;
}

.forgot-password {
    display: none;
}

.password-login.active ~ .forgot-password {
    display: block;
}
